package com.anxin.registerManagement.util;


/**
 * 常量类
 */
public class Const {

    public static int SUCCESS_CODE = 20000;
    public static String SUCCESS_MESSAGE = "success";
    public static int FAIL_CODE = 40000;
    public static String FAIL_MESSAGE = "fail";

    /**
     * Jwt参数
     */
    public static String secret = "RegisterManagement20220122!";    //秘钥
    public static int expire = 1000 * 60 * 60 * 24;             //过期时间1天
    public static String jwtName = "register-jwt-token";            //jwt名称

    /**
     * md5盐
     */
    public static String MD5_SALT = "register-management-love!";

    /**
     * 下面是自定义异常返回
     */
    public static String USER_NOT_EXIST = "用户不存在";
    public static String ERROR_CODE = "验证码错误或已失效";
    public static String ERROR_USERNAME_PASSWORD = "账号或密码错误";
    public static String JWT_ERROR = "jwt无效或过期";
    public static String UNKNOW_USERNAME = "用户名不存在";
    public static String UNKNOW_PASSWORD = "密码不正确";
    public static String UN_AUTHORIZED = "无权限访问";
    public static String REQUIRE_LOGIN = "请先进行登录";
    public static String ERROR_JWT_TOKEN = "token认证失败";
    public static String SCENE_EXIST = "场景已存在";
    public static String SCENE_NOT_EXIST = "场景不存在";
    public static String SCENE_DIST_EXIST = "场景距离已存在";
    public static String SCENE_DIST_NOT_EIXST = "场景距离不存在";
    public static String START_SCENE_NOT_EIXST = "起始场景不存在";
    public static String END_SCENE_NOT_EXIST = "目的地场景不存在";


}

